home *** CD-ROM | disk | FTP | other *** search
/ Ray Dream Studio 5 / Ray Dream.iso / pc / DreamSDK / Windows / SAMPLES / PRIMITIV / SPHR / SPHRFAC.H < prev   
Encoding:
C/C++ Source or Header  |  1997-07-11  |  843 b   |  32 lines

  1. // Copyright (c)1995 Ray Dream, Inc. All Rights Reserved.
  2. /* $Id: SphrFac.h 1.1 1996/07/19 00:09:45 Damien Exp $ */
  3.  
  4. #ifndef __SPHRFAC__
  5. #define __SPHRFAC__
  6.  
  7. #ifndef __I3DEX__
  8. #include "I3DEx.h"
  9. #endif
  10.                                                                                
  11.  
  12. // Sphere Class Factory :
  13. class SphereClassFactory : public IClassFactory {
  14. public:
  15.   SphereClassFactory(void);
  16.   ~SphereClassFactory(void);
  17.  
  18.   //IUnknown members
  19.   STDMETHODIMP         QueryInterface(REFIID, LPVOID FAR*);
  20.   STDMETHODIMP_(ULONG) AddRef(void);
  21.   STDMETHODIMP_(ULONG) Release(void);
  22.  
  23.   //IClassFactory members
  24.   STDMETHODIMP         CreateInstance(LPUNKNOWN, REFIID, LPVOID FAR*);
  25.   STDMETHODIMP         LockServer(BOOL);
  26. protected:
  27.   ULONG           m_cRef;
  28.   };                         
  29.  
  30.  
  31. #endif // __SPHEFACT__
  32.